package com.framework.modules.sys.controller;


import com.framework.entity.sys.SysLvRate;
import com.framework.exception.util.RespResult;
import com.framework.service.LvRateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 等级相关
 * @author wq
 */
@RestController
@RequestMapping("/sys/syslevelrate")
public class SysLevelRateController extends AbstractController {
    @Autowired
    private LvRateService lvRateService;

    /**
     * 等级列表
     * @return
     */
    @RequestMapping("/list")
    public RespResult List(){
        Long deptId=getUser().getDeptId();
        List<SysLvRate> list = lvRateService.queryLvList(deptId);
        return RespResult.ok().put("page",list);
    }

}
